package com.lagou.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@Slf4j
@EnableDiscoveryClient
@SpringBootApplication
public class EmailApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(EmailApplication.class, args);
//        SimpleOrderManager bean = context.getBean(SimpleOrderManager.class);
//        try {
//            log.info("开始发送邮件...");
//            bean.sendEmail("yangofmail@126.com", "");
//            log.info("邮件发送成功!");
//        } catch (Exception e){
//            log.info("邮件发送失败!");
//            e.printStackTrace();
//        }
    }
}
